/**
 * Created by Administrator on 2017/6/13.
 */
$(document).ready(function () {
    $('#books').cycle({
        loop: 1,
        timeout: 1000,
        speed: 600,
        pause: true,
        before: function () {
            $('#slider').slider({
                value: $('#books li').index(this),
                animate: 1500
            });
        }
    });
});